﻿#include <qglgraphicsviewer.h>
#include <QTimer>


class GALCamera;

class Viewer : public QGLGraphicsViewer
{
Q_OBJECT

public :
  Viewer(GALCamera* camera);

public :
 Q_SIGNALS :
  void cameraChanged();

protected :
  virtual void draw()override;
  virtual void initOnce()override;
  virtual QString helpString() const override;
  virtual void keyPressEvent(QKeyEvent *e)override;
  virtual void 	wheelEvent (QWheelEvent *e)override;

private :
  void showMessage();

  int forupdate;

  QTimer uti;
};
